using System;
using System.Data;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace HomeCare
{
    public partial class XRContinueEducation : DevExpress.XtraReports.UI.XtraReport
    {
        public XRContinueEducation(DataSet ds)
        {
            InitializeComponent();

            this.DataSource = ds.Tables[0];
        }

        public void setInfo(DateTime dtFrom, DateTime dtTo, bool bAttend)
        {
            String title = "Continue Education Report From " +
                               dtFrom.ToShortDateString() + " To " +
                               dtTo.ToShortDateString();
            if (bAttend)
            {
                title += " (Attended) ";
            }
            else
            {
                title += " (NOT Attended) ";
            }

            XRLB_Title.Text = title;
        }
    }
}
